home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / bash.postinst < prev    next >
Text File  |  2008-05-12  |  657b  |  32 lines

  1. #! /bin/bash
  2.  
  3. set -e
  4.  
  5. # the symlink is in the package now. So this should never happen ...
  6. if [ ! -e /bin/sh ]; then
  7.     ln -s bash /bin/sh
  8. fi
  9.  
  10. update-alternatives --install \
  11.     /usr/share/man/man7/builtins.7.gz \
  12.     builtins.7.gz \
  13.     /usr/share/man/man7/bash-builtins.7.gz \
  14.     10 \
  15.   || true
  16.  
  17. if [ "$1" = configure ] && dpkg --compare-versions "$2" le 3.2-3 \
  18.     && [ -x /usr/sbin/add-shell ]
  19. then
  20.     /usr/sbin/add-shell /bin/bash
  21.     /usr/sbin/add-shell /bin/rbash
  22. fi
  23.  
  24. # Automatically added by dh_installmenu
  25. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  26.     update-menus
  27. fi
  28. # End automatically added section
  29.  
  30.  
  31. exit 0
  32.